package com.yunxi.vip.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by chenmeng on 2019/9/6.
 */
@Data
public class VipApplyDetailVO implements Serializable {

    @ApiModelProperty(value = "明细主键")
    private String detailId;

    @ApiModelProperty(value = "申请id")
    private String applyId;

    @ApiModelProperty(value = "物料编码")
    private String vehicleCode;

    @ApiModelProperty(value = "车系编码")
    private String seriesCode;

    @ApiModelProperty(value = "车系")
    private String seriesName;

    @ApiModelProperty(value = "产品代码")
    private String productCode;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "内饰颜色代码")
    private String colorCodeIn;

    @ApiModelProperty(value = "内饰颜色名称")
    private String colorNameIn;

    @ApiModelProperty(value = "外饰颜色代码")
    private String colorCodeOut;

    @ApiModelProperty(value = "外饰颜色名称")
    private String colorNameOut;

    @ApiModelProperty(value = "选装包明细")
    private String customPackDetails;

    private String customPackNames;

    @ApiModelProperty(value = "数量")
    private String vehicleCount;

    @ApiModelProperty(value = "价格")
    private BigDecimal vehiclePrice;

    @ApiModelProperty(value = "是否安装充电桩")
    private Integer isChargingPoint;

    @ApiModelProperty(value = "充电桩安装地址")
    private String chargingAddr;

    @ApiModelProperty(value = "安装联系人")
    private String chargingLinkman;

    @ApiModelProperty(value = "安装电话")
    private String chargingPhone;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonDeserialize(using= DateJsonDeserializer.class)
    private Date createTime;

    private String partnerCode;

    private String partnerFinancial;

    @ApiModelProperty(value = "结算价")
    private BigDecimal settlementPrice ; //结算价
    @ApiModelProperty(value = "优惠金额")
    private BigDecimal preferentialPrice; //优惠金额
    @ApiModelProperty(value = "税金")
    private BigDecimal taxesPrice;   //税金

    private List<StoVehicleExpVO> listVehicle = new ArrayList<StoVehicleExpVO>();
}
